package com.shuma.common.exception;

public enum BusinessExceptionEnum {

    // 业务异常枚举类

    USERNAME_PASSWORD_NOT_NULL("用户名或者密码不能为空"),
    USERNAME_PASSWORD_ERROR("用户名或者密码错误"),
    USER_NOT_EXIST("用户不存在"),
    PROXYER_EXIST("已经是代理人")
    ;

    private String desc;

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                '}';
    }
}
